<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layui/common/commonHead :: commonHead(~{::title},~{},~{})">
    <title>首页</title>
</head>
<body class="layui-layout-body">

<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <!-- 头部-->
        <div th:replace="layui/common/header :: header"/>
        <!-- 侧边菜单 -->
        <div th:replace="layui/common/leftNav :: leftNav"/>
        <!-- 页面标签 -->
        <div th:replace="layui/common/tabs :: tabs"/>
        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <!--<iframe src="home/console.html" frameborder="0" class="layadmin-iframe"></iframe>-->
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>
<div th:replace="layui/common/commonJs :: commonJs(~{})"></div>
<script>
    layui.use(['index'],function () {
        layui.$.get("/sso/admin/app/appByCurrentUser",function(res){
            if(res.code == '00000'){
                var xmlSelectData = [];
                var result = res.data;
                for(var i in result){
                    var json = {};
                    json.name = result[i].appName;
                    json.value = result[i].id;
                    xmlSelectData.push(json);
                }
                layui.data("sso_admin_app",{
                    "key":"xmSelectData",
                    "value":xmlSelectData
                });
            }
        });
    });
</script>
</body>
</html>


